import request from '@/utils/request'
import api from '@/api/api'

export function loginApi(data) {
    return request.post2(api.login, data, 1);
}

export function registerApi(data) {
    return request.post2(api.register, data, 1);
}